package com.yt.lxh.model.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yt.lxh.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author yzk789
 * @since 2023-10-18
 */
@Data
@ApiModel(description = "商品详情")
@TableName("sku_info")
public class SkuInfo extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * sku名称
     */
    @ApiModelProperty(value = "sku名称")
    private String skuName;

    /**
     * sku封面
     */
    @ApiModelProperty(value = "sku封面路径")
    private String skuImg;

    /**
     * sku描述
     */
    @ApiModelProperty(value = "sku描述")
    private String skuDesc;

    /**
     * 商品单价
     */
    @ApiModelProperty(value = "商品单价")
    private BigDecimal price;

    /**
     * 分类id外键
     */
    @ApiModelProperty(value = "分类id外键")
    private Long categoryId;

    /**
     * 是否上架(1：是 / 0：否)
     */
    @ApiModelProperty(value = "是否售卖(1：是 / 0：否)")
    @TableField("is_onSale")
    private Boolean onSale;

    @ApiModelProperty(value = "排序权重")
    private Integer sort;

}
